package com.jt.tenant.activity;

import android.os.Bundle;
import android.os.Environment;
import android.view.ViewGroup;

import com.jt.tenant.app.JTApplication;
import com.zcx.helper.activity.AppPictureActivity;

import qiu.niorgai.StatusBarCompat;

/**
 * Created by 马长鸣 on 2016/5/9.
 */
public abstract class JTV4PictureActivity extends AppPictureActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        StatusBarCompat.translucentStatusBar(this);

        JTApplication.INSTANCE.addActivity(this);

    }

    @Override
    protected String getCameraAbsolutePath() {

        return Environment.getExternalStorageDirectory().getAbsolutePath() + "/jt";

    }

    @Override
    public void setContentView(int layoutResID) {

        super.setContentView(layoutResID);

        JTApplication.ScaleScreenHelper.loadView((ViewGroup) getWindow().getDecorView());

        StatusBarCompat.translucentStatusBar(this,true);

    }

    @Override
    protected void onDestroy() {

        super.onDestroy();

        JTApplication.INSTANCE.finishActivity(this);

    }

}
